package com.fengshang.wedding.web.view;

import java.beans.PropertyEditorSupport;

import com.fengshang.wedding.domain.model.api.Gender;

public class EnumTypeEditor extends PropertyEditorSupport {

	Gender gender;

	public String getAsText() {

		return super.getAsText();
	}

	public void setAsText(String text) throws IllegalArgumentException {
		Object value = null;
		if (text.equals("MALE")) {
		} else {
			value = Gender.FEMALE;
		}
		setValue(value);
	}

}
